country_to_capital  =  {  'United  Kingdom':  'London',
    'Brazil':  'Braslia',
    'Morocco':  'Rabat',
    'Sweden':  'Stockholm'  }

capital_to_country = {capital: country for country, capital in country_to_capital.items()}

from pprint import pprint as pp

pp(capital_to_country)


words = ["hi", "hello", "foxtrot", "hotel"]

{ x[0]:  x  for x  in words  }



#Comprehension complexity
import os
import glob
file_sizes  =  {os.path.realpath(p):  os.stat(p).st_size  for p  in glob.glob('*.py')}
pp(file_sizes)
